package game;

import heroes.Hero;

public class Damage {
	public static enum Nature {
		normal, fire, thunder
	}

	public Damage(Hero source, int point, Nature nature) {
		if (source != null) {
			this.source = source.getName();
		}else{
			this.source  =  "NULL";
		}
		this.point = point;
		this.nature = nature;
	}

	private String source;
	private int point;
	private Nature nature;

	/**
	 * @param point
	 *            the point to set
	 */
	public void setPoint(int point) {
		this.point = point;
	}

	/**
	 * @param nature
	 *            the nature to set
	 */
	public void setNature(Nature nature) {
		this.nature = nature;
	}

	/**
	 * @return the point
	 */
	public int getPoint() {
		return point;
	}

	/**
	 * @return the nature
	 */
	public Nature getNature() {
		return nature;
	}

	/**
	 * @param source
	 *            the source to set
	 */
	public void setSource(Hero source) {
		this.source = source.getName();
	}

	/**
	 * @return the source
	 */
	public String getSource() {
		return source;
	}

	public String toString() {
		return (source + "." + nature.toString() + "." + point);
	}
}
